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E5F,SAACyB,IAAI,CAACxI,KAAM,YAAsB,OAAV6F,EAAKW,M,UAAQ,SAACiC,IAAC,CAACpB,UAAU,Y,SAAY,gBApB5D,QAAY,OAAJhK,qBApJ9C,SAACmI,EAAQ,Q,sBCxCzBvG,EAAOtB,QAAU,EAAjB,S","sources":["webpack://_N_E/?4266","webpack://_N_E/./hooks/useClickOutSide.js","webpack://_N_E/./node_modules/next/dist/client/get-domain-locale.js","webpack://_N_E/./node_modules/next/dist/client/link.js","webpack://_N_E/./node_modules/next/dist/client/normalize-locale-path.js","webpack://_N_E/./node_modules/next/dist/shared/lib/app-router-context.js","webpack://_N_E/./assets/images/blog-email.svg","webpack://_N_E/./assets/images/blog-print.svg","webpack://_N_E/./assets/images/blog-twitter.svg","webpack://_N_E/./assets/images/blog-facebook.svg","webpack://_N_E/./assets/images/blog-pinterest.svg","webpack://_N_E/./pages/journal/[slug].js","webpack://_N_E/./node_modules/next/link.js"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/journal/[slug]\",\n function () {\n return require(\"private-next-pages/journal/[slug].js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/journal/[slug]\"])\n });\n }\n ","import {useEffect} from 'react'\n\n// ref - ref of tag that Clicked OutSide\n// callback function to execute after clicking outside\n// excludeRef - ref of Trigger tag, otherwise it will count as clickOutSide and modal/dropdown won't open\n\nconst useOutSideClick = (ref, callback, excludeRef) => {\n useEffect(() => {\n const handleClickOutSide = (event) => {\n if (ref.current && !ref.current.contains(event.target) && !excludeRef?.current.contains(event.target)) {\n callback(event)\n }\n }\n\n const handleEscapeKey = (event) => {\n if (event.key == 'Escape') {\n callback(event)\n }\n }\n\n document.addEventListener('click', handleClickOutSide)\n document.addEventListener('keydown', handleEscapeKey)\n\n return () => {\n document.removeEventListener('click', handleClickOutSide)\n document.removeEventListener('keydown', handleEscapeKey)\n }\n }, [ref, callback, excludeRef])\n}\n\nexport default useOutSideClick;","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.getDomainLocale = getDomainLocale;\nconst basePath = process.env.__NEXT_ROUTER_BASEPATH || '';\nfunction getDomainLocale(path, locale, locales, domainLocales) {\n if (process.env.__NEXT_I18N_SUPPORT) {\n const normalizeLocalePath = require('./normalize-locale-path').normalizeLocalePath;\n const detectDomainLocale = require('./detect-domain-locale').detectDomainLocale;\n const target = locale || normalizeLocalePath(path, locales).detectedLocale;\n const domain = detectDomainLocale(domainLocales, undefined, target);\n if (domain) {\n const proto = `http${domain.http ? '' : 's'}://`;\n const finalLocale = target === domain.defaultLocale ? '' : `/${target}`;\n return `${proto}${domain.domain}${basePath}${finalLocale}${path}`;\n }\n return false;\n } else {\n return false;\n }\n}\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=get-domain-locale.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _router = require(\"../shared/lib/router/router\");\nvar _addLocale = require(\"./add-locale\");\nvar _routerContext = require(\"../shared/lib/router-context\");\nvar _appRouterContext = require(\"../shared/lib/app-router-context\");\nvar _useIntersection = require(\"./use-intersection\");\nvar _getDomainLocale = require(\"./get-domain-locale\");\nvar _addBasePath = require(\"./add-base-path\");\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nfunction _objectWithoutPropertiesLoose(source, excluded) {\n if (source == null) return {};\n var target = {};\n var sourceKeys = Object.keys(source);\n var key, i;\n for(i = 0; i < sourceKeys.length; i++){\n key = sourceKeys[i];\n if (excluded.indexOf(key) >= 0) continue;\n target[key] = source[key];\n }\n return target;\n}\n// @ts-ignore useTransition exist\nconst hasUseTransition = typeof _react.default.useTransition !== 'undefined';\nconst prefetched = {};\nfunction prefetch(router, href, as, options) {\n if (typeof window === 'undefined' || !router) return;\n if (!(0, _router).isLocalURL(href)) return;\n // Prefetch the JSON page if asked (only in the client)\n // We need to handle a prefetch error here since we may be\n // loading with priority which can reject but we don't\n // want to force navigation since this is only a prefetch\n router.prefetch(href, as, options).catch((err)=>{\n if (process.env.NODE_ENV !== 'production') {\n // rethrow to show invalid URL errors\n throw err;\n }\n });\n const curLocale = options && typeof options.locale !== 'undefined' ? options.locale : router && router.locale;\n // Join on an invalid URI character\n prefetched[href + '%' + as + (curLocale ? '%' + curLocale : '')] = true;\n}\nfunction isModifiedEvent(event) {\n const { target } = event.currentTarget;\n return target && target !== '_self' || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.nativeEvent && event.nativeEvent.which === 2;\n}\nfunction linkClicked(e, router, href, as, replace, shallow, scroll, locale, startTransition) {\n const { nodeName } = e.currentTarget;\n // anchors inside an svg have a lowercase nodeName\n const isAnchorNodeName = nodeName.toUpperCase() === 'A';\n if (isAnchorNodeName && (isModifiedEvent(e) || !(0, _router).isLocalURL(href))) {\n // ignore click for browser’s default behavior\n return;\n }\n e.preventDefault();\n const navigate = ()=>{\n // replace state instead of push if prop is present\n router[replace ? 'replace' : 'push'](href, as, {\n shallow,\n locale,\n scroll\n });\n };\n if (startTransition) {\n startTransition(navigate);\n } else {\n navigate();\n }\n}\nconst Link = /*#__PURE__*/ _react.default.forwardRef(function LinkComponent(props, forwardedRef) {\n if (process.env.NODE_ENV !== 'production') {\n function createPropError(args) {\n return new Error(`Failed prop type: The prop \\`${args.key}\\` expects a ${args.expected} in \\`\\`, but got \\`${args.actual}\\` instead.` + (typeof window !== 'undefined' ? \"\\nOpen your browser's console to view the Component stack trace.\" : ''));\n }\n // TypeScript trick for type-guarding:\n const requiredPropsGuard = {\n href: true\n };\n const requiredProps = Object.keys(requiredPropsGuard);\n requiredProps.forEach((key)=>{\n if (key === 'href') {\n if (props[key] == null || typeof props[key] !== 'string' && typeof props[key] !== 'object') {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: props[key] === null ? 'null' : typeof props[key]\n });\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _ = key;\n }\n });\n // TypeScript trick for type-guarding:\n const optionalPropsGuard = {\n as: true,\n replace: true,\n scroll: true,\n shallow: true,\n passHref: true,\n prefetch: true,\n locale: true,\n onClick: true,\n onMouseEnter: true,\n legacyBehavior: true\n };\n const optionalProps = Object.keys(optionalPropsGuard);\n optionalProps.forEach((key)=>{\n const valType = typeof props[key];\n if (key === 'as') {\n if (props[key] && valType !== 'string' && valType !== 'object') {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: valType\n });\n }\n } else if (key === 'locale') {\n if (props[key] && valType !== 'string') {\n throw createPropError({\n key,\n expected: '`string`',\n actual: valType\n });\n }\n } else if (key === 'onClick' || key === 'onMouseEnter') {\n if (props[key] && valType !== 'function') {\n throw createPropError({\n key,\n expected: '`function`',\n actual: valType\n });\n }\n } else if (key === 'replace' || key === 'scroll' || key === 'shallow' || key === 'passHref' || key === 'prefetch' || key === 'legacyBehavior') {\n if (props[key] != null && valType !== 'boolean') {\n throw createPropError({\n key,\n expected: '`boolean`',\n actual: valType\n });\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _ = key;\n }\n });\n // This hook is in a conditional but that is ok because `process.env.NODE_ENV` never changes\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const hasWarned = _react.default.useRef(false);\n if (props.prefetch && !hasWarned.current) {\n hasWarned.current = true;\n console.warn('Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated');\n }\n }\n let children;\n const { href: hrefProp , as: asProp , children: childrenProp , prefetch: prefetchProp , passHref , replace , shallow , scroll , locale , onClick , onMouseEnter , legacyBehavior =Boolean(process.env.__NEXT_NEW_LINK_BEHAVIOR) !== true } = props, restProps = _objectWithoutPropertiesLoose(props, [\n \"href\",\n \"as\",\n \"children\",\n \"prefetch\",\n \"passHref\",\n \"replace\",\n \"shallow\",\n \"scroll\",\n \"locale\",\n \"onClick\",\n \"onMouseEnter\",\n \"legacyBehavior\"\n ]);\n children = childrenProp;\n if (legacyBehavior && (typeof children === 'string' || typeof children === 'number')) {\n children = /*#__PURE__*/ _react.default.createElement(\"a\", null, children);\n }\n const p = prefetchProp !== false;\n const [, /* isPending */ startTransition] = hasUseTransition ? // There is no difference between renders in this case, only between using React 18 vs 17.\n // @ts-ignore useTransition exists\n // eslint-disable-next-line react-hooks/rules-of-hooks\n _react.default.useTransition() : [];\n let router = _react.default.useContext(_routerContext.RouterContext);\n // TODO: type error. Remove `as any`\n const appRouter = _react.default.useContext(_appRouterContext.AppRouterContext);\n if (appRouter) {\n router = appRouter;\n }\n const { href , as } = _react.default.useMemo(()=>{\n const [resolvedHref, resolvedAs] = (0, _router).resolveHref(router, hrefProp, true);\n return {\n href: resolvedHref,\n as: asProp ? (0, _router).resolveHref(router, asProp) : resolvedAs || resolvedHref\n };\n }, [\n router,\n hrefProp,\n asProp\n ]);\n const previousHref = _react.default.useRef(href);\n const previousAs = _react.default.useRef(as);\n // This will return the first child, if multiple are provided it will throw an error\n let child;\n if (legacyBehavior) {\n if (process.env.NODE_ENV === 'development') {\n if (onClick) {\n console.warn(`\"onClick\" was passed to with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onClick be set on the child of next/link`);\n }\n if (onMouseEnter) {\n console.warn(`\"onMouseEnter\" was passed to with \\`href\\` of \\`${hrefProp}\\` but \"legacyBehavior\" was set. The legacy behavior requires onMouseEnter be set on the child of next/link`);\n }\n try {\n child = _react.default.Children.only(children);\n } catch (err) {\n if (!children) {\n throw new Error(`No children were passed to with \\`href\\` of \\`${hrefProp}\\` but one child is required https://nextjs.org/docs/messages/link-no-children`);\n }\n throw new Error(`Multiple children were passed to with \\`href\\` of \\`${hrefProp}\\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` + (typeof window !== 'undefined' ? \" \\nOpen your browser's console to view the Component stack trace.\" : ''));\n }\n } else {\n child = _react.default.Children.only(children);\n }\n }\n const childRef = legacyBehavior ? child && typeof child === 'object' && child.ref : forwardedRef;\n const [setIntersectionRef, isVisible, resetVisible] = (0, _useIntersection).useIntersection({\n rootMargin: '200px'\n });\n const setRef = _react.default.useCallback((el)=>{\n // Before the link getting observed, check if visible state need to be reset\n if (previousAs.current !== as || previousHref.current !== href) {\n resetVisible();\n previousAs.current = as;\n previousHref.current = href;\n }\n setIntersectionRef(el);\n if (childRef) {\n if (typeof childRef === 'function') childRef(el);\n else if (typeof childRef === 'object') {\n childRef.current = el;\n }\n }\n }, [\n as,\n childRef,\n href,\n resetVisible,\n setIntersectionRef\n ]);\n _react.default.useEffect(()=>{\n const shouldPrefetch = isVisible && p && (0, _router).isLocalURL(href);\n const curLocale = typeof locale !== 'undefined' ? locale : router && router.locale;\n const isPrefetched = prefetched[href + '%' + as + (curLocale ? '%' + curLocale : '')];\n if (shouldPrefetch && !isPrefetched) {\n prefetch(router, href, as, {\n locale: curLocale\n });\n }\n }, [\n as,\n href,\n isVisible,\n locale,\n p,\n router\n ]);\n const childProps = {\n ref: setRef,\n onClick: (e)=>{\n if (process.env.NODE_ENV !== 'production') {\n if (!e) {\n throw new Error(`Component rendered inside next/link has to pass click event to \"onClick\" prop.`);\n }\n }\n if (!legacyBehavior && typeof onClick === 'function') {\n onClick(e);\n }\n if (legacyBehavior && child.props && typeof child.props.onClick === 'function') {\n child.props.onClick(e);\n }\n if (!e.defaultPrevented) {\n linkClicked(e, router, href, as, replace, shallow, scroll, locale, appRouter ? startTransition : undefined);\n }\n },\n onMouseEnter: (e)=>{\n if (!legacyBehavior && typeof onMouseEnter === 'function') {\n onMouseEnter(e);\n }\n if (legacyBehavior && child.props && typeof child.props.onMouseEnter === 'function') {\n child.props.onMouseEnter(e);\n }\n if ((0, _router).isLocalURL(href)) {\n prefetch(router, href, as, {\n priority: true\n });\n }\n }\n };\n // If child is an tag and doesn't have a href attribute, or if the 'passHref' property is\n // defined, we specify the current 'href', so that repetition is not needed by the user\n if (!legacyBehavior || passHref || child.type === 'a' && !('href' in child.props)) {\n const curLocale = typeof locale !== 'undefined' ? locale : router && router.locale;\n // we only render domain locales if we are currently on a domain locale\n // so that locale links are still visitable in development/preview envs\n const localeDomain = router && router.isLocaleDomain && (0, _getDomainLocale).getDomainLocale(as, curLocale, router.locales, router.domainLocales);\n childProps.href = localeDomain || (0, _addBasePath).addBasePath((0, _addLocale).addLocale(as, curLocale, router && router.defaultLocale));\n }\n return legacyBehavior ? /*#__PURE__*/ _react.default.cloneElement(child, childProps) : /*#__PURE__*/ _react.default.createElement(\"a\", Object.assign({}, restProps, childProps), children);\n});\nvar _default = Link;\nexports.default = _default;\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=link.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.normalizeLocalePath = void 0;\nconst normalizeLocalePath = (pathname, locales)=>{\n if (process.env.__NEXT_I18N_SUPPORT) {\n return require('../shared/lib/i18n/normalize-locale-path').normalizeLocalePath(pathname, locales);\n }\n return {\n pathname,\n detectedLocale: undefined\n };\n};\nexports.normalizeLocalePath = normalizeLocalePath;\n\nif ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') {\n Object.defineProperty(exports.default, '__esModule', { value: true });\n Object.assign(exports.default, exports);\n module.exports = exports.default;\n}\n\n//# sourceMappingURL=normalize-locale-path.js.map","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.FullAppTreeContext = exports.AppTreeContext = exports.AppRouterContext = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst AppRouterContext = _react.default.createContext(null);\nexports.AppRouterContext = AppRouterContext;\nconst AppTreeContext = _react.default.createContext(null);\nexports.AppTreeContext = AppTreeContext;\nconst FullAppTreeContext = _react.default.createContext(null);\nexports.FullAppTreeContext = FullAppTreeContext;\nif (process.env.NODE_ENV !== 'production') {\n AppRouterContext.displayName = 'AppRouterContext';\n AppTreeContext.displayName = 'AppTreeContext';\n FullAppTreeContext.displayName = 'FullAppTreeContext';\n}\n\n//# sourceMappingURL=app-router-context.js.map","export default {\"src\":\"/_next/static/media/blog-email.b3577521.svg\",\"height\":12,\"width\":16};","export default {\"src\":\"/_next/static/media/blog-print.344701b6.svg\",\"height\":19,\"width\":18};","export default {\"src\":\"/_next/static/media/blog-twitter.fa4f356e.svg\",\"height\":14,\"width\":17};","export default {\"src\":\"/_next/static/media/blog-facebook.3a5abf90.svg\",\"height\":14,\"width\":6};","export default {\"src\":\"/_next/static/media/blog-pinterest.ea2a5777.svg\",\"height\":15,\"width\":12};","import React, {useRef, useState, useEffect} from 'react';\nimport { useRouter } from 'next/router';\nimport Head from 'next/head';\nimport Link from 'next/link';\nimport Image from 'next/image';\nimport dynamic from 'next/dynamic';\nimport moment from 'moment/moment';\nimport services from '../../services';\nimport Email from '../../assets/images/blog-email.svg';\nimport Print from '../../assets/images/blog-print.svg';\nimport useClickOutSide from '../../hooks/useClickOutSide';\nimport Twitter from '../../assets/images/blog-twitter.svg';\nimport Facebook from '../../assets/images/blog-facebook.svg';\nimport Pinterest from '../../assets/images/blog-pinterest.svg';\nconst NotFound = dynamic(() => import('../../components/NotFound'));\n\nconst Slug = ({categories, acf, blog, recommendation}) => {\n const [socialOpen, setSocialOpen] = useState(false);\n const [getSlug, setGetSlug] = useState(blog[0]);\n const socialToggler = useRef(null);\n const socials = useRef(null);\n const router = useRouter();\n\n const toggleSocial = () => {\n return setSocialOpen(!socialOpen);\n }\n\n function dateFormatUpdate (date) {\n return moment(new Date(date)).format('DD MMM YYYY');\n }\n\n useEffect(() => {\n setGetSlug(blog[0]);\n }, [router.query.slug]);\n\n useClickOutSide(socials, () => setSocialOpen(false), socialToggler);\n\n return (\n <>\n {!getSlug ? (\n \n ) : (\n <>\n \n Little Honey Money\n ]+(>|$)|&[^;]+;/g, '').replace(/\\s+/g, ' ')} />\n ]+(>|$)|&[^;]+;/g, '').replace(/\\s+/g, ' ')} />\n ]+(>|$)|&[^;]+;/g, '').replace(/\\s+/g, ' ')} />\n \n \n \n ]+(>|$)|&[^;]+;/g, '').replace(/\\s+/g, ' ')} />\n \n \n
\n
\n
\n {acf?.acf.banner_image_for_mobile &&\n \"banner\"\n\n }\n
\n
\n {acf?.acf.banner_image &&\n \"banner\"\n\n }\n
\n
\n
\n {categories && categories.find(category => category.id === getSlug.categories[0]).name}\n

\n

\n
\n

{dateFormatUpdate(getSlug.date)}

\n
\n

{acf?.acf?.author_name && acf?.acf?.author_name}

\n

Written by {acf?.acf?.author_name && acf?.acf?.author_name}

\n
\n
\n
\n
\n ...\n
\n {socialOpen &&
\n \n \"twitter\"\n \n \n \"facebook\"\n \n \n \"facebook\"\n \n \n \"facebook\"\n \n {e.preventDefault(); window.print()}} href=\"\">\n \"facebook\"\n \n
}\n
\n
\n
\n
\n
\n {getSlug?.content.rendered &&
\n
\n
}\n {acf?.acf.interview && acf?.acf.interview &&
\n {acf?.acf.interview.length > 1 ? (\n
    \n {acf?.acf?.interview.map((int, key) => {\n return (\n
  • \n
    \n

    {int.q_label}

    \n

    \n
    \n
    \n

    {int.a_label}

    \n
    \n
    \n
  • \n )\n })}\n
\n ) : (\n
    \n
  • \n
    \n

    {acf?.acf[0].interview.q_label}

    \n

    \n
    \n
    \n

    {acf?.acf[0].interview.a_label}

    \n
    \n
    \n
  • \n
\n )}\n
}\n {acf?.acf.bottom_info &&
\n
\n
}\n
\n
\n

Share this story

\n
\n \n \"twitter\"\n \n \n \"facebook\"\n \n \n \"pinterest\"\n \n \n \"email\"\n \n {e.preventDefault(), window.print()}} href=\"\">\n \"facebook\"\n\n \n
\n
\n
\n
\n
\n
\n Related Stories\n
\n category.id === getSlug.categories[0]).name}`}>All\n
\n
\n
\n {recommendation && recommendation.map((blog, key) => {\n return(\n
\n \n \n

READ

\n \"image\"\n\n
\n \n
\n {blog.categories.map((category, key) => {\n return (\n {categories.find(item => item.id === category).name}{key !== blog.categories.length - 1 ? \",\" : \"\"}\n )\n })}\n
\n \n
\n Read\n
\n
\n )\n })}\n
\n
\n
\n
\n \n )}\n \n )\n}\n\nexport const getStaticProps = async ({ params }) => {\n const blog = await services.api.journal.getBlog(params.slug);\n const categories = await services.api.journal.getAllCategories();\n let recommendation;\n let acf;\n if (blog?.length) {\n const newRecommendation = await services.api.journal.getRecommendation(blog[0].categories[0]);\n acf = await services.api.journal.getAcf(blog[0].id);\n\n recommendation = newRecommendation.filter(rec => rec.id !== blog[0].id).slice(0, 2);\n for(let limit = 2; limit > 0; limit--) {\n await services.api.journal.getMedia(recommendation[limit - 1].featured_media)\n .then(response => {recommendation[limit - 1].banner_image = response.source_url})\n }\n }\n\n return {\n props: {\n recommendation: blog.length ? recommendation : [],\n categories,\n acf: blog.length ? acf : [],\n blog ,\n },\n revalidate: 60 * 3\n }\n}\n\nexport const getStaticPaths = async () => {\n const blogs = await services.api.journal.getAllBlogs();\n const paths = blogs.map((slug) => ({\n params: { slug: slug.slug },\n }));\n\n return {\n paths,\n fallback: 'blocking'\n }\n}\n\nexport default Slug;\n","module.exports = require('./dist/client/link')\n"],"names":["window","__NEXT_P","push","ref","callback","excludeRef","useEffect","handleClickOutSide","event","current","contains","target","handleEscapeKey","key","document","addEventListener","removeEventListener","Object","defineProperty","exports","value","getDomainLocale","path","locale","locales","domainLocales","normalizeLocalePath","require","detectDomainLocale","detectedLocale","domain","undefined","proto","http","finalLocale","defaultLocale","basePath","process","default","__esModule","assign","module","obj","_react","_router","_addLocale","_routerContext","_appRouterContext","_useIntersection","_getDomainLocale","_addBasePath","hasUseTransition","useTransition","prefetched","prefetch","router","href","as","options","isLocalURL","catch","err","curLocale","_default","forwardRef","props","forwardedRef","children","passHref","replace","shallow","scroll","onClick","onMouseEnter","legacyBehavior","Boolean","restProps","source","excluded","i","sourceKeys","keys","length","indexOf","_objectWithoutPropertiesLoose","childrenProp","createElement","p","prefetchProp","startTransition","useContext","RouterContext","appRouter","AppRouterContext","child","useMemo","resolveHref","hrefProp","resolvedHref","resolvedAs","asProp","previousHref","useRef","previousAs","Children","only","childRef","useIntersection","rootMargin","setIntersectionRef","isVisible","resetVisible","setRef","useCallback","el","shouldPrefetch","isPrefetched","childProps","e","defaultPrevented","currentTarget","nodeName","toUpperCase","metaKey","ctrlKey","shiftKey","altKey","nativeEvent","which","isModifiedEvent","preventDefault","navigate","linkClicked","priority","type","localeDomain","isLocaleDomain","addBasePath","addLocale","cloneElement","pathname","FullAppTreeContext","AppTreeContext","createContext","NotFound","dynamic","acf","date","categories","blog","recommendation","useState","socialOpen","setSocialOpen","getSlug","setGetSlug","socialToggler","socials","useRouter","query","slug","useClickOutSide","Head","title","meta","name","content","rendered","split","property","asPath","banner_image_for_mobile","div","className","section","img","src","alt","height","width","banner_image","span","find","category","id","h1","dangerouslySetInnerHTML","__html","moment","Date","format","author_name","Link","a","Image","Twitter","Facebook","Pinterest","Email","print","Print","article","interview","ul","map","int","li","h3","q_label","question","a_label","answer","bottom_info","item"],"sourceRoot":""}